namespace com.ytocargo.EntityFramework.SecondMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class BackgroundjobInfo : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.BACKGROUNDJOB",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        JobType = c.String(nullable: false, maxLength: 512),
                        JobArgs = c.String(nullable: false),
                        TryCount = c.Short(nullable: false),
                        NextTryTime = c.DateTime(nullable: false),
                        LastTryTime = c.DateTime(),
                        IsAbandoned = c.Boolean(nullable: false),
                        Priority = c.Byte(nullable: false),
                        CREATORID = c.Long(),
                        CREATETIME = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.ID);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.BACKGROUNDJOB");
        }
    }
}
